package com.ag.oa.core.service.impl;

import com.ag.oa.core.dao.IQAUserDao;
import com.ag.oa.core.entity.vo.QAUserVO;
import com.ag.oa.core.service.IQAUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("qauserServiceImpl")
public class QAUserServiceImpl implements IQAUserService     {

    @Autowired
    private IQAUserDao qauserDao;

    @Override
    public void modUserQuesIndex(String userId,Integer nowIndex ){
          qauserDao.modUserQuestionIndex(userId,nowIndex);
    }

    @Override
    public List<QAUserVO> getUserBigNameById(String id){
        return qauserDao.getUserNameById(id);
    }

    @Override
    public QAUserVO getUserQuesIndex(String userId){
        return qauserDao.getUserIndexById(userId);
    }

    @Override
    public QAUserVO getUserById(String userId){
        return qauserDao.getUserDataById(userId);
    }

}
